﻿using System;
using System.Collections.Generic;
using System.Linq;
using Volo.Abp.Application.Services;
using Volo.Abp.Application.Dtos;
using XfTech.SmartTms.IServices;
using XfTech.SmartTms.Entities;
using XfTech.SmartTms.Books.Dtos;
using Microsoft.AspNetCore.Authorization;
using Volo.Abp.Domain.Repositories;

namespace XfTech.SmartTms.Services
{
    /// <summary>
    /// 图书管理模块（简单CRUD，所以直接用基类，直接生成增删改查接口）
    /// </summary>
    [Authorize] //授权
    public class BookAppService : CrudAppService<Book, 
                                        BookDto, 
                                        Guid, 
                                        PagedAndSortedResultRequestDto,
                                        CreateUpdateBookDto, 
                                        CreateUpdateBookDto>,
                                IBookAppService
    {

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="repository"></param>
        public BookAppService(IRepository<Book, Guid> repository)
            :base(repository)
        {

        }
    }
}
